package com.atxyj.springsecurity.system.validator;

import javax.validation.Constraint;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.PARAMETER;

@Documented
@Constraint(validatedBy = FullNameValidator.class)
@Target({PARAMETER, FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface FullName {
     String message() default "姓名格式错误";

     Class[] groups() default{};

     Class[] payload() default {};
}
